import '../../../../helper/utils/util.dart';
import 'state.dart';

class NickNameController extends GetxController {
  final state = NickNameState();
  @override
  void onInit() {
    super.onInit();
    state.name = Get.arguments['nick'];
  }

  void sure() {
    var nick = state.name;
    if (nick.isEmpty) {
      return;
    }
    Get.back(result: nick);
  }
}
